import { request, METHOD } from '@/utils/request';
import qs from 'qs';
// 条件筛选告警代码维护列表
export const getServAlertApi = (params) => {
  return request('/serv/servAlert/getServAlert', METHOD.GET, params);
};

// 新增告警代码维护列表
export const saveServAlertApi = (params) => {
  return request('/serv/servAlert/saveServAlert', METHOD.POST, params);
};

// 修改告警代码维护列表
export const updateServAlertApi = (params) => {
  return request('/serv/servAlert/updateServAlert', METHOD.POST, qs.stringify(params));
};

// 查看获取报告类型
export const getAlertTypeApi = () => {
  return request('/serv/servAlertSourceType/getListAll', METHOD.GET);
};
// 查看获取报告类型
export const getAlertRepTypeApi = () => {
  return request('/ftm/ftmEvent/getEventChildrenByAlert', METHOD.GET);
};
// 查看获取alert事件类型
export const getEventChildrenByAlertApi = () => {
  return request('/ftm/ftmEvent/getEventChildrenByAlert', METHOD.GET);
};
// 批量删除告警代码维护列表
export const updateDeletedApi = (params) => {
  return request('/serv/servAlert/updateDeleted', METHOD.GET, params);
};

// 获取标签列表
export const getRepReportParamLabelListApi = (params) => {
  return request('/rep/repReportParamLabel/getRepReportParamLabelList', METHOD.POST, params);
};
